package com.publicize.service;

import com.publicize.entity.Examination;
import com.baomidou.mybatisplus.extension.service.IService;
import com.publicize.entity.Vo.ExaminationVo;
import com.publicize.entity.Vo.QueryVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 知识竞赛测试表 服务类
 * </p>
 *
 * @author bs
 * @since 2021-03-06
 */
public interface ExaminationService extends IService<Examination> {

    Map<String, String> save(String examinationNumber, MultipartFile file);

    boolean remove(String number);

    Examination insertOrUpdate(Examination examination);

    boolean unUpload(String number);

    int getExaminationCount(QueryVo queryVo);

    List<ExaminationVo> getExaminationList(QueryVo queryVo);

    List<ExaminationVo> getAll();
}
